﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BBInterfaceNET.Model
{
    public class OsInfo
    {
        private OsInfo()
        {
            Devices = new List<DeviceInfo>();
        }
        public string Name { get; set; }
        public List<DeviceInfo> Devices { get; set; }

        public static List<OsInfo> GetOsInfos()
        {
            List<OsInfo> res = new List<OsInfo>();
            res.Add(new OsInfo()
            {
                Name = "4.6",
                Devices = new List<DeviceInfo>() { 
                    new DeviceInfo() { 
                        Name="8900", 
                        DefaultFontFamily="", 
                        DefaultFontSize=27, 
                        ScreenSize=new System.Windows.Size(480, 360)
                    },
                    new DeviceInfo() { 
                        Name="9000", 
                        DefaultFontFamily="", 
                        DefaultFontSize=27, 
                        ScreenSize=new System.Windows.Size(480, 320)
                    }
                }
            });
            res.Add(new OsInfo()
            {
                Name = "5.0",
                Devices = new List<DeviceInfo>() { 
                    new DeviceInfo() { 
                        Name="8900", 
                        DefaultFontFamily="", 
                        DefaultFontSize=27, 
                        ScreenSize=new System.Windows.Size(480, 360)
                    },
                    new DeviceInfo() { 
                        Name="9100", 
                        DefaultFontFamily="", 
                        DefaultFontSize=27, 
                        ScreenSize=new System.Windows.Size(360, 400)
                    },
                    new DeviceInfo() { 
                        Name="9300", 
                        DefaultFontFamily="", 
                        DefaultFontSize=18, 
                        ScreenSize=new System.Windows.Size(320, 240)
                    }
                }
            });
            res.Add(new OsInfo()
            {
                Name = "6.0",
                Devices = new List<DeviceInfo>() { 
                    new DeviceInfo() { 
                        Name="9800", 
                        DefaultFontFamily="", 
                        DefaultFontSize=27, 
                        ScreenSize=new System.Windows.Size(360, 480)
                    }
                }
            });
            return res;
        }

    }
}
